﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _111_对象池
{
    abstract class Entity
    {
        public string Name { get; set; }

        public int ID { get; set; }

        public float posX { get; set; }

        public float posY { get; set; }

        public abstract void Destroy();

        protected void InitData(EntityData data)
        {
            Name = data.Name;
            ID = data.ID;
            posX = data.posX;
            posY = data.posY;
        }
    }
}
